const { createProxyMiddleware } = require('http-proxy-middleware');

module.exports = (app) => {
    app.use(
        "/college",
        createProxyMiddleware({
            target: 'http://192.168.2.203:5791',
            changeOrigin: true,
            PathRewrite: {
                '^/college': ''
            }
        })
    );
    app.use(
        "/auth",
        createProxyMiddleware({
            target: 'http://192.168.2.203:5791',
            changeOrigin: true,
            PathRewrite: {
                '^/auth': ''
            }
        })
    );
    app.use(
        "/rm",
        createProxyMiddleware({
            target: 'http://192.168.2.203:5791',
            changeOrigin: true,
            PathRewrite: {
                '^/rm': ''
            }
        })
    );
};
